#!/bin/bash
# 只有这个环境完美适配
# 初始化 conda
eval "$(conda shell.bash hook)"

# 创建并激活虚拟环境
conda create --name fbocc python=3.8 -y
conda activate fbocc

# 安装 PyTorch 相关包
pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113
# 安装 mmdet3d 相关包

pip install -U openmim
pip install mmcv-full==1.5.3 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html
pip install mmdet==2.25.1
pip install mmsegmentation==0.25.0
pip install mmengine


# 安装其他依赖
pip install numpy==1.23.4
pip install yapf==0.40.1
pip install setuptools==59.5.0
pip install ninja
pip install einops
pip install open3d==0.16.0


pip install -v -e .


echo "环境设置完成！" 